package com.etc.entity;

import java.io.Serializable;
import java.util.Date;
import com.etc.entity.FxMusician;

/**
 * fx_music
 * @author 
 */
public class FxMusic implements Serializable {
    private Integer id;

    private String musicname;

    private Date releasetime;

    private String musicpath;

    private String lyricspath;

    private Integer musicianid;

    private Integer typeid;

    private Integer status;

    private Integer click;


    private Integer userid;

    private  Integer playlistid;



    public Integer getPlaylistid() {
        return playlistid;
    }

    public void setPlaylistid(Integer playlistid) {
        this.playlistid = playlistid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public FxMusic() {
    }

    @Override
    public String toString() {
        return "FxMusic{" +
                "id=" + id +
                ", musicname='" + musicname + '\'' +
                ", releasetime=" + releasetime +
                ", musicpath='" + musicpath + '\'' +
                ", lyricspath='" + lyricspath + '\'' +
                ", musicianid=" + musicianid +
                ", typeid=" + typeid +
                ", status=" + status +
                ", click=" + click +

                ", type=" + type +
                ", musician=" + musician +
                '}';
    }



    public FxMusic(Integer id, String musicname, Date releasetime, String musicpath, String lyricspath, Integer musicianid, Integer typeid, Integer status, Integer click, String username, String playlistname, Type type, FxMusician musician) {
        this.id = id;
        this.musicname = musicname;
        this.releasetime = releasetime;
        this.musicpath = musicpath;
        this.lyricspath = lyricspath;
        this.musicianid = musicianid;
        this.typeid = typeid;
        this.status = status;
        this.click = click;

        this.type = type;
        this.musician = musician;
    }



    private Type type;

    private FxMusician musician;


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private User user;

    private FxPlaylist playlist;

    public FxPlaylist getPlaylist() {
        return playlist;
    }

    public void setPlaylist(FxPlaylist playlist) {
        this.playlist = playlist;
    }

    public FxMusician getMusician() {
        return musician;
    }

    public void setMusician(FxMusician musician) {
        this.musician = musician;
    }

    private static final long serialVersionUID = 1L;

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public FxMusician getMusican() {
        return musician;
    }

    public void setMusican(FxMusician musican) {
        this.musician = musican;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMusicname() {
        return musicname;
    }

    public void setMusicname(String musicname) {
        this.musicname = musicname;
    }

    public Date getReleasetime() {
        return releasetime;
    }

    public void setReleasetime(Date releasetime) {
        this.releasetime = releasetime;
    }

    public String getMusicpath() {
        return musicpath;
    }

    public void setMusicpath(String musicpath) {
        this.musicpath = musicpath;
    }

    public String getLyricspath() {
        return lyricspath;
    }

    public void setLyricspath(String lyricspath) {
        this.lyricspath = lyricspath;
    }

    public Integer getMusicianid() {
        return musicianid;
    }

    public void setMusicianid(Integer musicianid) {
        this.musicianid = musicianid;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getClick() {
        return click;
    }

    public void setClick(Integer click) {
        this.click = click;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FxMusic other = (FxMusic) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMusicname() == null ? other.getMusicname() == null : this.getMusicname().equals(other.getMusicname()))
            && (this.getReleasetime() == null ? other.getReleasetime() == null : this.getReleasetime().equals(other.getReleasetime()))
            && (this.getMusicpath() == null ? other.getMusicpath() == null : this.getMusicpath().equals(other.getMusicpath()))
            && (this.getLyricspath() == null ? other.getLyricspath() == null : this.getLyricspath().equals(other.getLyricspath()))
            && (this.getMusicianid() == null ? other.getMusicianid() == null : this.getMusicianid().equals(other.getMusicianid()))
            && (this.getTypeid() == null ? other.getTypeid() == null : this.getTypeid().equals(other.getTypeid()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getClick() == null ? other.getClick() == null : this.getClick().equals(other.getClick()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMusicname() == null) ? 0 : getMusicname().hashCode());
        result = prime * result + ((getReleasetime() == null) ? 0 : getReleasetime().hashCode());
        result = prime * result + ((getMusicpath() == null) ? 0 : getMusicpath().hashCode());
        result = prime * result + ((getLyricspath() == null) ? 0 : getLyricspath().hashCode());
        result = prime * result + ((getMusicianid() == null) ? 0 : getMusicianid().hashCode());
        result = prime * result + ((getTypeid() == null) ? 0 : getTypeid().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getClick() == null) ? 0 : getClick().hashCode());
        return result;
    }

}